from flask import Flask,jsonify,Request
from os import environ
from url_do import DefConfging, Porconfig
app = Flask(__name__)

def create_flask():
    if environ.get('my_env') == 'dev':
        my_config = DefConfging
    else:
        my_config = Porconfig
    app.config.from_object(my_config)
    return app

